package com.front.frontdemo.controller;

import com.example.comm.client.DemoClient;
import com.example.comm.vo.OContact;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

/**
 * 网关action
 */
@RestController
public class FeignConsumerController {

    @Resource
    private DemoClient demoClient;

    @PostMapping("/test")
    public Map test(OContact OContact) {
        return demoClient.hello(OContact);
    }

}
